import axios from 'axios'

/**
 * 客户服务类
 */
export default class ApplyService {
    static applyService = null
    requestUrl = 'http://localhost/applys'

    static getInstance(){
        if(this.applyService == null){
            this.applyService = new ApplyService()
        }
        return this.applyService
    }

    //查询的方法
    list(params){
        return axios.get(this.requestUrl,{
            params:params
        })
    }

    selectAllType(){
        return axios.get(this.requestUrl+"/types")
    }
}